package com.zz.parkingsystem.entity;

import java.io.Serializable;
import lombok.Data;

/**
 * 短信配置表
 * @TableName t_message_set
 */
@Data
public class MessageSet implements Serializable {
    /**
     * 短信配置表编号
     */
    private Integer msId;

    /**
     * 第三方参数表id
     */
    private Integer paraId;

    /**
     * 模板ID
     */
    private Integer msTemplateId;

    /**
     * 短信用户名
     */
    private String msMsgusername;

    /**
     * 短信密码
     */
    private String msPassword;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MessageSet other = (MessageSet) that;
        return (this.getMsId() == null ? other.getMsId() == null : this.getMsId().equals(other.getMsId()))
            && (this.getParaId() == null ? other.getParaId() == null : this.getParaId().equals(other.getParaId()))
            && (this.getMsTemplateId() == null ? other.getMsTemplateId() == null : this.getMsTemplateId().equals(other.getMsTemplateId()))
            && (this.getMsMsgusername() == null ? other.getMsMsgusername() == null : this.getMsMsgusername().equals(other.getMsMsgusername()))
            && (this.getMsPassword() == null ? other.getMsPassword() == null : this.getMsPassword().equals(other.getMsPassword()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getMsId() == null) ? 0 : getMsId().hashCode());
        result = prime * result + ((getParaId() == null) ? 0 : getParaId().hashCode());
        result = prime * result + ((getMsTemplateId() == null) ? 0 : getMsTemplateId().hashCode());
        result = prime * result + ((getMsMsgusername() == null) ? 0 : getMsMsgusername().hashCode());
        result = prime * result + ((getMsPassword() == null) ? 0 : getMsPassword().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", msId=").append(msId);
        sb.append(", paraId=").append(paraId);
        sb.append(", msTemplateId=").append(msTemplateId);
        sb.append(", msMsgusername=").append(msMsgusername);
        sb.append(", msPassword=").append(msPassword);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}